package com.ruoyi.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.business.domain.TContactInfo;
import com.ruoyi.business.vo.TContactInfoVo;
import com.ruoyi.business.mapper.TContactInfoMapper;
import com.ruoyi.business.service.ITContactInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 联系方式Service业务层处理
 *
 * @author Tellsea
 * @date 2024-01-17
 */
@Service
public class TContactInfoServiceImpl extends ServiceImpl<TContactInfoMapper, TContactInfo> implements ITContactInfoService {

    @Override
    public TableDataInfo<TContactInfoVo> queryList(TContactInfoVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<TContactInfoVo> queryAll(TContactInfoVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public TContactInfoVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
